<?php include './include/conf.php'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">

<head>
		<title>Jardins familiaux de Lacroix-Falgarde : gestion des informations </title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
		<link rel="stylesheet" type="text/css" href="style/style.css" />
		<script type="text/javascript" src="./script/fonctions_communes.js"></script>
		<script type="text/javascript" src="./script/gerer_informations.js"></script>
</head>
	
<body>
	<div id="global">
		<!-- header -->
		<?php include './include/header.php' ; ?>
		
		<!-- fil d'ariane et espace adh�rant -->
		<p id="ariane">
			vous êtes ici : <a href="index.html">accueil</a> &gt; <a href="adherent.php">espace adhérent</a>  &gt; <a href="#">gérer informations</a>
			<a id="espaceAdherent" href="connexion.php">espace adh�rent</a>
		</p>	

		<!-- contenu -->
		<div id="contenu">
			<?php include('./include/menu_gauche.php'); ?>
			
			<div id="information">
				<h1>Gestion des informations</h1>
				<?php 
					$requete = $pdo->prepare("select * from categorie order by nom");
					$requete->execute();
					echo '<select id="categ">';
					echo "<option value='' selected='selected'>Choisissez une catégorie</option>";
					while ($categorie = $requete->fetch())
					{
						echo "<OPTION VALUE=".$categorie->id_categorie." >".$categorie->nom."</OPTION>";
					}
					echo "</select>";
				?>
				<input  type="button" id="bp_ajouter" value="Ajouter information" />
				<br/><br/>
				<div id="informations_categorie"></div>
			</div>
		</div>

		<!-- footer -->
		<?php include('./include/footer.php'); ?>
	</div>
</body>
</html>